package 创建者模式.原型模式.demo2;

/**
 * @Description TODO
 * @Author shallow
 * @Date 2023/3/4 12:22
 */

public class Citation implements Cloneable{

    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
    public void show(){
        System.out.println(name+"同学是三好学生！");
    }

    @Override
    protected Citation clone() throws CloneNotSupportedException {
        return (Citation) super.clone();
    }
}
